<template>
  <div class="absolute z-10" :style="usePosition(cargo).value" v-for="cargo in cargos" :key="cargo.id">
    <img :src="getImageUrl('cargo.png')" alt="" />
  </div>
</template>

<script setup>
import { useCarGoStore } from '@/store/cargo'
import { storeToRefs } from 'pinia'
import { getImageUrl } from '@/utils/index'
import { usePosition } from '@/composables/usePosition'
const { cargos } = storeToRefs(useCarGoStore())
</script>

<style lang="scss" scoped></style>
